package com.coco.utils;

import java.util.List;

import com.coco.model.Product;

public class PageBean {

	private int currentPage;
	private int pageSize;
	private int totalCount;
	private int totalPageSize;
	private List<Product> list;
	
	public PageBean() {
		
		super();
		 
			
	}
	
	public PageBean(int currentPage, int pageSize, int totalCount, int totalPageSize, List<Product> list) {
		super();
		this.currentPage = currentPage;
		this.pageSize = pageSize;
		this.totalCount = totalCount;
		this.totalPageSize = totalPageSize;
		this.list = list;
	}

	public int getCurrentPage() {
	
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
	
		this.currentPage = currentPage;
	}
	public int getPageSize() {
	
		return pageSize;
	}
	public void setPageSize(int pageSize) {
	
		this.pageSize = pageSize;
	}
	public int getTotalCount() {
	
		return totalCount;
	}
	public void setTotalCount(int totalCount) {
	
		this.totalCount = totalCount;
	}
	public int getTotalPageSize() {
	
		return totalPageSize;
	}
	public void setTotalPageSize(int totalPageSize) {
	
		this.totalPageSize = totalPageSize;
	}
	public List<Product> getList() {
	
		return list;
	}
	public void setList(List<Product> list) {
	
		this.list = list;
	}

	@Override
	public String toString() {
		return "PageBean [currentPage=" + currentPage + ", pageSize=" + pageSize + ", totalCount=" + totalCount
				+ ", totalPageSize=" + totalPageSize + ", list=" + list + "]";
	}
	
	
}

	